home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 001-025 / scopedisk20 / gwcalc / gwcalc.doc < prev    next >
Text File  |  1995-03-18  |  4KB  |  148 lines

  1. gwCalc.doc            Document for            5/18/87
  2.  
  3.         `gwCalc'  an ? easily programmable calculator
  4.  
  5.    Copyright (c) 1987  by Gaylan Wallis ;  ALL RIGHTS RESERVED
  6. Permission is granted to use, copy, and distribute the program `gwCalc'
  7. providing that no fee shall be charged for such copying and distribution,
  8. and that both `gwCalc' and `gwCalc.doc' are distributed together and in
  9. their unmodified state.
  10.  
  11. Disclaimer:  This program is provided `as is' without warranty of any
  12. kind, either expressed or implied.  Gaylan Wallis does not warrant,
  13. guarantee or make any representations regarding the use of the program
  14. in terms of correctness, accuracy, reliability, currentness, or other-
  15. wise and will not be liable for direct, indirect, incidental, or con-
  16. sequential damages resulting from any defect in the program.
  17.  
  18.                 gwCalc
  19.  
  20.     gwCalc is much different than most calculators for the Amiga.
  21. Instead of emulating an existing calculator along with its limitations.
  22. Why not create one that takes advantage of the Amiga's design?  Thats
  23. the theory anyway.  The heart of gwCalc is the ability to solve simple
  24. equations and display more information than a standard calculator does.  
  25.  
  26.                   General Description
  27.  
  28.     When executed, gwCalc activates the main equation string gadget for
  29. keyboard input.  Simply type your equation in and upon a `Return' the 
  30. expression is evaluated and the result is placed just above in the Main
  31. Display.
  32.  
  33.     At the top. a paper tape is simulated to show a history of your work
  34. and, four memory locations are at the bottom.  2 other equation boxes are
  35. just below the Main Equation box.  They differ from the main in that they
  36. are not cleared when evaluated.  The ` = ', ` e1 ', ` e2 ' little gadgets
  37. cause the respective equations to be evaluated.
  38.  
  39.     The ` clr e ' gadget will clear all the equation boxes and the ` clr r '
  40. gadget clears all 4 memory registers.
  41.  
  42.     Sorry, the registers are not gadgets, you can click-em all you want
  43. but no workee.
  44.  
  45.                 Equations
  46.  
  47.     Equations consist of numeric values separated by operators.  They
  48. may also contain store register commands. 
  49.  
  50.     Math Operators:
  51.     +    Add
  52.     -    Subtract
  53.     *    Multiply
  54.     /    Division
  55.     =    Equals
  56.  
  57.     Numeric values:  3-types
  58.     a numeric representation like 123.34 or 99.0 or -1112223
  59.         no exponents.
  60.         leading minus sign legal but must follow a math operator.
  61.     a memory register.
  62.     the result of an equation.
  63.  
  64.     Memory Operations:
  65.     s#    Store to register #  (where # is 1-4)
  66.     r#    Recall from register # 
  67.  
  68.     Equation Operations:
  69.     an e1 or e2 within an equation causes the repective equation
  70.     to be evaluated and the result returned as a numeric value.
  71.  
  72.     A valid equation may start with either a Numeric value, register
  73. value, an operand, or a store command.  If an equation begins with an
  74. operator, the main display is used as the first value in the operation.
  75. If an equation begins with a numeric value, the value in the Main Display
  76. is ignored.
  77.  
  78.     Equations are evaluated left to right.  The store register command
  79. can be anywhere within and equation.
  80.  
  81.  
  82. Quick tutorial:
  83.  
  84. enter the -> equations into the main equation box and type return after
  85. each.
  86.     
  87.    Add 2 numbers.
  88. ->    123+34
  89.  
  90.    Store this number in register 1.
  91. ->    s1
  92.  
  93.    Clear the calculator.
  94. ->    0
  95.  
  96.    Add a series of numbers and save result in register 2.
  97. ->    24
  98. ->    +36
  99. ->    +24
  100. ->    +32
  101. ->    s2
  102.  
  103.    This could also have been typed as one line.
  104. ->    24+36+24+32s2
  105.  
  106.    Spaces are permitted between fields and equal signs are optional.
  107. ->    24 + 36 + 24 + 32 = s2
  108.  
  109.    Add register 1 plus register 2 and store result in register 3
  110. ->    r1 + r2 = s3
  111.  
  112.    Enter a negative number
  113. ->    0 - 45.66
  114.  
  115. ** Now a short program which takes the number you enter in the
  116.    main box and divides it by a constant in register 2.
  117.  
  118.    Put this nextline in the e1 box.
  119. ->    / r2 =
  120.  
  121.    Now back to the main box to use the program.
  122. ->    58e1
  123. ->    29e1
  124. ->    23e1
  125.  
  126.    By the way if just an `e' is on the end of a equation it defaults to e1 if
  127.    the digit 1 or 2 is missing.
  128. ->    87e
  129.  
  130.  
  131. ** Watching interest compound.
  132.  
  133.    Enter a beggining balance to register 1.
  134. ->    100.00s1
  135.  
  136.    Enter an interest rate multiplier to register 2.  8.25%
  137. ->    1.0825s2
  138.  
  139.    Enter the next equation in the e1 box
  140. ->    r1 * r2 = s1
  141.  
  142.    Now everytime you click the little e1 box interest is added to the
  143.    value in register 1.
  144.  
  145. ** Thats all you get now.
  146.  
  147.    Don't be afraid to try things like having `e1' call `e2'.
  148.